package com.zwk.edu.client;

import com.zwk.base.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zwk
 * @create 2022/8/26 15:09
 */
@FeignClient(name = "service-vod", fallback = HystrixVodClientImpl.class)
public interface VodClient {

    // 删除视频
    @DeleteMapping("/vod/removeAliyunVideo/{id}")
    public CommonResult removeAliyunVideo(@PathVariable("id") String id);

    // 批量删除
    @DeleteMapping("/vod/deleteBatch")
    public CommonResult deleteBatch(@RequestParam("videoList") List<String> videoList);

}
